import { createStore } from 'vuex'
export default createStore({
  state: {
    // 重置密码的email
    email: '',
    // 注册成功后完善资料需要调用的数据
    registerData: {
      uname: '',
      registerEmail: ''
    }
  },
  mutations: {
    updataemail(state, val) {
      state.email = val
    },
    registerEmail(state, val) {
      // state.registerEmail = val
      // console.log(val.uname, val.email);
      state.registerData.uname = val.uname
      state.registerData.registerEmail = val.email
    }
  }
})